<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <link rel="stylesheet" href="/goodsManage/css/index.css">
    <script src="/goodsManage/js/jquery.min.js" ></script>
    <style>
        .el-row {
            margin-bottom: 10px;
        }
    </style>
</head>
<body bgcolor="#606266">
<div id="app">
    <el-container>
        <el-main>
            <el-row :gutter="10" type="flex" class="row-bg" justify="center">
                <el-col :span="3">
                    <el-card class="box-card" style="text-align: center">
                        <el-image style="cursor: pointer" @click="toList('电视机')"   src="/goodsManage/img/tv.png"></el-image>
                        <span >电视机</span>
                    </el-card>
                </el-col>


            </el-row>
            <el-row :gutter="10" type="flex" class="row-bg" justify="center">
                <el-col :span="3">
                    <el-card class="box-card" style="text-align: center">
                        <el-image style="cursor: pointer" @click="toList('冰箱')" src="/goodsManage/img/fridge.png"></el-image>
                        <span >冰箱</span>
                    </el-card>
                </el-col>
                <el-col :span="3">
                    <el-card class="box-card" style="text-align: center">
                        <el-image style="cursor: pointer" @click="toList('')" src="/goodsManage/img/other.png"></el-image>
                        <span >其他</span>
                    </el-card>
                </el-col>
                <el-col :span="3">
                    <el-card class="box-card" style="text-align: center">
                        <el-image style="cursor: pointer" @click="toList('空调')" src="/goodsManage/img/ac.png"></el-image>
                        <span>空调</span>
                    </el-card>
                </el-col>
            </el-row>
            <el-row :gutter="10" type="flex" class="row-bg" justify="center">


                <el-col :span="3">
                    <el-card class="box-card" style="text-align: center">
                        <el-image style="cursor: pointer" @click="toList('洗衣机')" src="/goodsManage/img/washer.png"></el-image>
                        <span>洗衣机</span>
                    </el-card>
                </el-col>
            </el-row>

        </el-main>
    </el-container>
</div>
</body>
<script src="/goodsManage/js/vue.js"></script>
<!-- import JavaScript -->
<script src="/goodsManage/js/index.js"></script>
<script>
    var app = new Vue({
        el: '#app',
        data: function() {
            return {
            }
        },
        created() {

        },
        methods:{
            toList(goods_type){
                window.location.href = "list.html?goods_type=" + encodeURIComponent(goods_type);
            },

        }
    })
</script>
</html>